package com.alisls.demo.springcloud.service.im.service;

/**
 * RabbitMq发送消息服务
 *
 * @author Ke Wang
 * @date 2020/10/14
 */
public interface RabbitMqMessageService extends MessageService {

    /**
     * 发送消息到默认交换器，指定路由键
     * @param routingKey
     * @param message
     * @return
     */
    String sendMessage(String routingKey, String message);

    /**
     * 发送消息到指定交换器，指定路由键
     * @param exchange
     * @param routingKey
     * @param message
     * @return
     */
    String sendMessage(String exchange, String routingKey, String message);

}
